package com.pwt.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pwt.entity.User;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Set;

@Data
@Schema(name = "UserPOJO",description = "用户查询模型")
public class UserPOJO {

    @Schema(description = "用户ID")
    private String id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "token")
    private String token;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "角色id集合")
    private Set<String> roles;

    @Schema(description = "角色")
    private String roleName;

    @Schema(description = "状态/0:关闭,1:开启")
    private Integer status;

    @Schema(description = "上次登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date lastLoginTime;
}
